<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends CommonAction {
    public function index(){
		$this->display();

	}
	
	public function top(){
		$this->display();
	}

	public function left(){
		//获取message表中的所有数据
		$message=D('Message');
		import('ORG.Util.Page');
		$count=$message->count();
		$page=new Page($count,2);
		$show=$page->show();
		$page->setConfig('header','条留言');
		$this->assign('show',$show);
		$arr=$message->relation(true)->order('time desc')->limit($page->firstRow.','.$page->listRows)->select();
		$arr->time
		$this->assign('list',$arr);
		$this->display();
	}
	public function right(){
		$this->display();
	}

}
